//
//  UserManaged.m
//  Lovely Food
//
//  Created by 李经纬 on 15/12/1.
//  Copyright © 2015年 李经纬. All rights reserved.
//

#import "UserManaged.h"

@interface UserManaged ()

@property (nonatomic, copy) NSString *userName;

@property (nonatomic, copy) NSString *userId;

@end

@implementation UserManaged

// 单例
+ (instancetype)defaultManager
{
    static dispatch_once_t onceToken;
    static UserManaged *userManager = nil;
    dispatch_once(&onceToken, ^{
        userManager = [[UserManaged alloc] init];
    });
    return userManager;
}

// 保存用户
- (void)saveUserName:(NSString *)userName userId:(NSString *)userId
{
    self.userName = userName;
    self.userId = userId;
}
// 查找用户
- (NSArray *)findUserSince
{
    return @[self.userName, self.userId];
}


@end
